using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UCL.Powersource;
using UCL.Powersource.Analysis;
using UCL.Powersource.Mock;
using UCL.Powersource.TFS;

namespace Powersource_UnitTests.StatisticsTest
{
    internal class msp1MockTfsTeamProjectCollConfig : DummyTeamProjectCollectionConfiguration
    {
        public msp1MockTfsTeamProjectCollConfig()
        {

            var tpcc = this;
            tpcc._ProjectCollectionTimeFrames = new List<ITimeFrame>();


            tpcc._ProjectCollectionTimeFrames.Add(new TimeFrameIteration() { Label = "Team2/4Sprint1", IterationPath = "Release 1\\Sprint 1", FinishDate = new DateTime(2011, 10, 10), StartDate = new DateTime(2011, 10, 3) });
            tpcc._ProjectCollectionTimeFrames.Add(new TimeFrameIteration() { Label = "Team1Sprint1", IterationPath = "Release 1\\Sprint 1", FinishDate = new DateTime(2011, 10, 14) });
            tpcc._ProjectCollectionTimeFrames.Add(new TimeFrameIteration() { Label = "Sprint2", IterationPath = "Release 1\\Sprint 2", FinishDate = new DateTime(2012, 5, 4) });
            tpcc._ProjectCollectionTimeFrames.Add(new TimeFrameIteration() { Label = "Sprint3", IterationPath = "Release 1\\Sprint 3", FinishDate = new DateTime(2012, 5, 18) });
            tpcc._ProjectCollectionTimeFrames.Add(new TimeFrameIteration() { Label = "Sprint2LateDate", IterationPath = "Release 1\\Sprint 2", FinishDate = new DateTime(2012, 5, 18) });
            tpcc._ProjectCollectionTimeFrames.Add(new TimeFrameIteration() { Label = "Sprint3EarlyDate", IterationPath = "Release 1\\Sprint 3", FinishDate = new DateTime(2012, 5, 14) });
            tpcc._ProjectCollectionTimeFrames.Add(new TimeFrameIteration() { Label = "InvalidIterationPath", IterationPath = "Release 1\\Sprint 8", FinishDate = new DateTime(2012, 5, 14) });

            tpcc.TeamProjectConfigurations = new List<ITfsTeamProjectConfiguration>();
            tpcc.TeamProjectConfigurations.Add(new TfsTeamProjectConfiguration("FabrikamFiber", 1, this) { IsChosen = true });

            tpcc.TeamProjectConfigurations.Add(new TfsTeamProjectConfiguration("Team1", 1, this) { IsChosen = true });
            tpcc.TeamProjectConfigurations.Add(new TfsTeamProjectConfiguration("Team2", 2, this) { IsChosen = true });
            tpcc.TeamProjectConfigurations.Add(new TfsTeamProjectConfiguration("Team3", 3, this) { IsChosen = true });
            tpcc.TeamProjectConfigurations.Add(new TfsTeamProjectConfiguration("Team4", 4, this) { IsChosen = true });
          //  tpcc.Uri = "http://msp-1:8080/tfs/TestAgileCollection/";
            tpcc.Name = "TestAgileCollection";
            TfsTeamProjectCollection = new DummyTfsTeamProjectCollection(new Uri("http://msp-1:8080/tfs/TestAgileCollection/"));

            //TeamProjectConfigurations.Add(new TfsTeamProjectConfiguration("TestProjectTeam5", 5, this));
        }




    }
}
